
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>原一科技</title>
    <meta name="keywords" content="原一科技">
    <meta name="description" content="原一科技">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="/Public/Admin/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="/Public/Admin/css/style.min.css?v=4.1.0" rel="stylesheet">

    <style>
        .pages a,
        .pages span {
            display: inline-block;
            padding: 5px 18px;
            margin: 0 1px;
            border: 1px solid #f0f0f0;
            -webkit-border-radius: 3px;
            -moz-border-radius: 3px;
            border-radius: 3px;
            font-size: 15px;
        }

        .pages a,
        .pages li {
            display: inline-block;
            list-style: none;
            text-decoration: none;
            color: #58A0D3;
        }

        .pages a.first,
        .pages a.prev,
        .pages a.next,
        .pages a.end {
            margin: 0;
        }

        .pages a:hover {
            border-color: #50A8E6;
        }

        .pages span.current {
            background: #50A8E6;
            color: #FFF;
            font-weight: 700;
            border-color: #50A8E6;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>猜成语游戏用户列表
                        <small></small>
                    </h5>

                </div>
                <div class="ibox-content">
                    <!--<button class="btn btn-info" id="edit" type="button"><i class="fa fa-paste" ></i> 编辑</button>-->
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                        <tr>
                            <td>
                                <input type="checkbox" class="i-checks" onClick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                            </td>
                            <th>序号</th>
                            <th>用户ID</th>
                            <th>用户昵称</th>
                            <th>省份</th>
                            <th>城市</th>
                            <th>机会</th>
                            <th>闯关次数</th>
                            <th>注册时间</th>

                        </tr>
                        </thead>
                        <tbody>
                        
                      	<?php 

                        	if(! empty($data['user_list']))
                            {
                            	foreach($data['user_list'] as $key => $val)
                                {
                        ?>
                        <tr class="gradeX">
                            <td>

                                <input class="ids" type="checkbox" name="selected[]"  value="{$val['idiom_member_id']}">

                            </td>
                            <td>{++$key;}</td>
                            <td>{$val['idiom_member_id']}</td>
                            
                            <td class="feed-element">
                
                            <img alt="image" class="img-circle" src="{$val['avatarurl']}">
                            &nbsp;
                            {$val['nickname']}
                            </td>
                            <td class="center">{$val['province']}</td>
                            <td class="center">{$val['city']}</td>
                            <td class="center">{$val['opportunity']+$val['giveopportunity']}</td>
                            <td class="center">{$val['number']}</td>
                            <td class="center"><?php  echo date('Y-m-d H:i:s',$val['logintime']); ?></td>

                        </tr>
                        
                        
                        <?php
                        		}
                            }    
                        ?>
                        


                        </tbody>
                    </table>
                    <div class="pages">{$page}</div>

                </div>
            </div>
        </div>
    </div>

</div>

<script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="/Public/Admin/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/Public/Admin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="/Public/Admin/js/plugins/layer/layer.js?v=1.0"></script>
<script type="text/javascript" src="/Public/Admin/js/contabs.min.js?v=1.0"></script>

<script>
    $("#edit").click(function()
    {
        var id		=	[],
            id_val	=	0;
        $('input[name="selected[]"]:checked').each(function() {
            id.push($(this).val());
            id_val	=	$(this).val();
        });

        if(id.length == 0)
        {
            layer.msg('请选择要编辑的内容', {icon: 2});
            return false;
        }

        if(id.length > 1)
        {
            layer.msg('只能选择一条记录', {icon: 2});
            return false;
        }

        location.href = "{:U('GuessStar/game_question_edit')}?id="+id;

    });

</script>
</body>

</html>
